/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Entity(TableCnName = "审核信息",TableName = "tb_project_workflowstep")]
    public partial class tb_project_workflowstep:BaseEntity
    {
        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "Id")]
        [MaxLength(36)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string Id { get; set; } = new Snowflake.Core.IdWorker(1, 1).NextId().ToString();

       /// <summary>
       ///主表id
       /// </summary>
       [Display(Name ="主表id")]
       [MaxLength(36)]
       [Column(TypeName= "nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string workFlowTableId { get; set; }

       /// <summary>
       ///流程id
       /// </summary>
       [Display(Name ="流程id")]
       [MaxLength(36)]
       [Column(TypeName= "nvarchar(64)")]
       [Editable(true)]
       public string? workFlowId { get; set; }

       /// <summary>
       ///节点id
       /// </summary>
       [Display(Name ="节点id")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string stepId { get; set; }

       /// <summary>
       ///节名称
       /// </summary>
       [Display(Name ="节名称")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string stepName { get; set; }

       /// <summary>
       ///审批类型
       /// </summary>
       [Display(Name ="审批类型")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? stepType { get; set; }

       /// <summary>
       ///节点类型(1=按用户审批,2=按角色审批,3=按部门审批 )
       /// </summary>
       [Display(Name ="节点类型(1=按用户审批,2=按角色审批,3=按部门审批 )")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? stepValue { get; set; }

       /// <summary>
       ///审批顺序
       /// </summary>
       [Display(Name ="审批顺序")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? orderId { get; set; }

       /// <summary>
       ///审核人id
       /// </summary>
       [Display(Name ="审核人id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? auditId { get; set; }

       /// <summary>
       ///审核人
       /// </summary>
       [Display(Name ="审核人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string auditor { get; set; }

       /// <summary>
       ///审核状态（1：通过 2：不通过）
       /// </summary>
       [Display(Name ="审核状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? auditStatus { get; set; }

       /// <summary>
       ///审核时间
       /// </summary>
       [Display(Name ="审核时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? auditDate { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string remark { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="createDate")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? createDate { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="createID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? createID { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="creator")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string creator { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="modifier")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string modifier { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="modifyDate")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modifyDate { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="modifyID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? modifyID { get; set; }

       
    }
}